package goover.unit06;

public class RunnableDemo03 {
    public static void main(String[] args){
        Thread05 t1 = new Thread05();
        new Thread(t1,"窗口1").start();
        new Thread(t1,"窗口2").start();
        new Thread(t1,"窗口3").start();
        new Thread(t1,"窗口4").start();
        new Thread(t1,"窗口5").start();

    }
}
class Thread05 implements Runnable{
    private int i = 10;
    @Override
    public void run() {
        while (i > 0){
            System.out.println("票" + i--);
        }
    }
}